package com.shanks.framework.mq.demo.controller;

import com.shanks.framework.mq.demo.service.DemoService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {

    @Resource
    private DemoService demoService;

    @GetMapping("/send")
    public void send(@RequestParam Long orderId) {
        demoService.send(orderId);
    }
}
